﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.CodeDom;
using System.Xml.Linq;

namespace CodeDomHelper.CodeDom
{

    [Serializable()]
    public class CCData : CDoc
    {

        /// <summary>
        /// Initializes a new instance of the <see cref="CCData"/> class.
        /// <![CDATA[]]>
        /// </summary>
        /// <param name="comment">The comment.</param>
        public CCData(string comment)
            : base(comment)
        {

        }

        internal override bool Unique { get { return false; } }

        internal override string Serialize
        {
            get
            {         
                return string.Format(CDataConst, Value);
            }
        }
    }


}
